package com.lkd.http.controller;
import com.lkd.entity.TaskEntity;
import com.lkd.exception.LogicException;
import com.lkd.http.vo.*;
import com.lkd.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/task")
public class TaskController extends  BaseController{
    @Autowired
    private TaskService taskService;

    /**
     * 创建工单
     * @param task
     * @return
     */
//    @PostMapping("/create")
//    public boolean create(@RequestBody TaskViewModel task){
//        task.setAssignorId(getUserId());  //设置当前登录用户id为指派人id
//        return taskService.createTask(task);
//    }
}